import api from '../utils/axios'
import qs from 'qs'


export default {


  /*  释放记录  */
  releaseList: function ({type}) {
    return api.post('/api/block/v/releaseList',{type}).then((resp) => {
      return Promise.resolve(resp.data)
    })
  },

    /*  待释放记录  */
  lockedList: function ({type=2,pageSize=20,pageNum=1}) {
        return api.post('/api/block/v/lockedList', {type,pageSize,pageNum}).then((resp) => {
            return Promise.resolve(resp.data)
        })
    },


    /*  ha  */
  certificate: function ({id}) {
        return api.post('/api/block/v/doLocked', {id}).then((resp) => {
            return Promise.resolve(resp.data)
        })
    },



    /*  更新昵称  */
  updateNickName: function ({name=''}) {
        return api.post('/api/block/v/updateNickName', {name}).then((resp) => {
            return Promise.resolve(resp.data)
        })
    },


    /*  获取用户基本信息  */
  findUserBaseInfo: function ({userId=''}) {
        return api.post('/api/block/findUserBaseInfo', {userId}).then((resp) => {
            return Promise.resolve(resp.data)
        })
    },



    /*  邀请列表  */
  inviteList: function ({pageSize=1,pageNum=10}) {
        return api.post('/api/block/v/inviteList', {pageSize,pageNum}).then((resp) => {
            return Promise.resolve(resp.data)
        })
    },


}
